#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

class B{ public: int b; };
class C1 : public B { public: int c1; };
class C2 : public B { public: int c2; };
class D : public C1, public C2 { public: int d; };

int main()
{
	cout << sizeof(D) << endl;
	return 0;
}